﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewMatakuliah.aspx.cs" Inherits="SIAKAD.ViewMatakuliah" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>SIAKAD - MATAKULIAH</title>

    <!-- normalize.css -->
    <link href="Content/normalize.css" rel="stylesheet" />

    <!-- Bootstrap -->
    <link href="Content/bootstrap.min.css" rel="stylesheet" />

    <!-- SIAKAD style -->
    <link href="Content/Css/Siakad.css" rel="stylesheet" />

    <!-- jQuery -->
    <script src="Scripts/jquery-2.1.0.min.js"></script>
    <script src="Scripts/bootstrap.min.js"></script>

    <!-- SIAKAD script -->
    <script src="Scripts/Js/Siakad.js"></script>
    <script src="Scripts/Js/ViewMatakuliah.js"></script>

    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <form id="frmMatakuliah" runat="server">
        <asp:ScriptManager ID="scriptManager" runat="server" />

        <!-- navbar -->
        <div class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">SIAKAD</a>
                </div>
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li class="active"><a href="ViewMatakuliah.aspx">Matakuliah</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <!-- body -->
        <div class="container">
            <div class="page-header">
                <h1>Matakuliah</h1>
            </div>

            <asp:UpdatePanel ID="upCrudGrid" runat="server">
                <ContentTemplate>
                    <asp:GridView ID="gvMatakuliah" runat="server"
                        CellSpacing="-1" GridLines="None"
                        CssClass="table table-hover" AutoGenerateColumns="false"
                        OnRowCommand="gvMatakuliah_RowCommand" DataKeyNames="id_detail_matakuliah_periode"
                        AllowPaging="true" OnPageIndexChanging="gvMatakuliah_PageIndexChanging" PageSize="10">
                        <Columns>
                            <asp:TemplateField HeaderStyle-Width="70px" HeaderText="NO"> 
                                <ItemTemplate> 
                                    <%# Container.DataItemIndex + 1 %>. 
                                </ItemTemplate> 
                                <ItemStyle HorizontalAlign="Right" /> 
                            </asp:TemplateField>
                            <asp:BoundField DataField="nama_matakuliah" HeaderText="USERNAME" HeaderStyle-Width="250px" />
                            <asp:BoundField DataField="nama_role" HeaderText="ROLE" />
                        </Columns>
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </form>
</body>
</html>
